[module/rofi]
type = custom/script
exec = echo "󰣇"
click-left = rofi -show drun -config .config/rofi/menu.rasi -show-icons
label-foreground = ${colors.green}
label-background = ${colors.black}
label-font = 2


[module/xworkspaces]
type = internal/i3
index-sort = true
wrapping-scroll = false
fuzzy-match = true

ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;󰨞
ws-icon-3 = 4;
ws-icon-4 = 5;󰈎
ws-icon-5 = 6;
ws-icon-6 = 7;
ws-icon-7 = 8;
ws-icon-8 = 9;
ws-icon-9 = 0;󰓓

pin-workspaces = true

label-focused = %icon%
label-focused-background = ${colors.black}
label-focused-foreground = ${colors.green}
label-focused-underline= ${colors.primary}
label-focused-padding = 1

label-unfocused = %icon%
label-unfocused-background = ${colors.black}
label-unfocused-foreground = ${colors.bg}
label-unfocused-padding = 1

label-urgent = %icon%
label-urgent-background = ${colors.alert}
label-urgent-padding = 1

[module/cmus]
type = custom/script
exec = ~/.config/i3/scripts/cmus.sh
exec-if = pgrep -x cmus
interval = 1
label-foreground = ${colors.fg}
;label-background = ${colors.black}
label-padding = 1

click-left = cmus-remote --next
click-right = cmus-remote --prev
click-middle = cmus-remote --pause
scroll-up = cmus-remote --volume +5%
scroll-down = cmus-remote --volume -5%

[module/xwindow]
type = internal/xwindow
label = %title:0:60:...%
label-maxlen = 20
label-foreground = ${colors.foreground}
label-background = ${colors.black}
label-padding = 0
label-margin = 0


[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.yellow}
format-prefix-background = ${colors.black}
label = %percentage_used:2%%
label-foreground = ${colors.white}
label-background = ${colors.black}


[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "󰍛 "
format-prefix-foreground = ${colors.cyan}
format-prefix-background = ${colors.black}
label = %percentage:2%%
label-foreground = ${colors.white}
label-background = ${colors.black}


[module/filesystem]
type = internal/fs
interval = 25

mount-0 = /

label-mounted = %{F#F4B8E4}%{F-} %percentage_used%%
label-mounted-foreground = ${colors.white}
label-mounted-background = ${colors.black}

label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}


[module/mic]
type = custom/script
interval = 0
exec = ~/.config/polybar/mic-tog.sh &
click-left = pulseaudio-ctl mute-input
click-right = pavucontrol -t 4 &

format-prefix-foreground = ${colors.green}
format-prefix-background = ${colors.black}
label-foreground = ${colors.fg}
label-background = ${colors.black}


[module/pulseaudio]
type = internal/pulseaudio

format-volume-prefix = " "
format-volume-prefix-foreground = ${colors.green}
format-volume-prefix-background = ${colors.black}
format-volume = <label-volume>

label-volume = %percentage%%

format-volume-foreground = ${colors.white}
format-volume-background = ${colors.black}

label-muted = muted
label-muted-foreground = ${colors.disabled}
label-muted-background = ${colors.black}

[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
blacklist-1 = caps lock

label-layout = %layout%
label-layout-foreground = ${colors.white}
label-layout-background = ${colors.black}

format-prefix =" "
format-prefix-foreground = ${colors.green}
format-prefix-background = ${colors.black}

label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-foreground = ${colors.cyan}
label-indicator-background = ${colors.black}


[module/date]
type = internal/date
interval = 5
date =
date-alt = "%Y-%m-%d"
time = "%H:%M"
format-prefix =""
label =%date% %time%

format-prefix-foreground = ${colors.green}
format-prefix-background = ${colors.black}
label-foreground = ${colors.white}
label-background = ${colors.black}


[module/powermenu]
type = custom/script
exec = echo ""
click-left = ~/.config/i3/scripts/powermenu.sh

label-foreground = ${colors.red}
label-background = ${colors.black}

[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = 
label-disconnected-foreground = ${colors.white}
label-disconnected-background = ${colors.black}

[module/wlan]
inherit = network-base
interface-type = wireless
label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
label-connected-foreground = ${colors.white}
label-connected-background = ${colors.black}

[module/eth]
inherit = network-base
interface-type = wired
label-connected = %upspeed:9% %downspeed:9%
label-connected-foreground = ${colors.white}
label-connected-background = ${colors.black}

[module/round-left]
type = custom/text
content = 
content-foreground = ${colors.black}
content-font = 3
content-padding = 1
content-margin = 0

[module/round-right]
type = custom/text
content = 
content-foreground = ${colors.black}
content-font = 3
content-padding = 0
content-margin = 0

[module/point]
type = custom/text
content = 
content-foreground = ${colors.blue}
content-font = 4
content-padding = 1
content-margin = 0

[module/point_2]
type = custom/text
content = 
content-foreground = ${colors.black}
content-font = 4
content-padding = 1
content-margin = 0
